package com.cms.enums;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * 静态化类型
 *
 */
public enum HtmlType {

    ALL("全部"),
    INDEX("首页"),
    CATEGORY("栏目页"),
    CONTENT("内容页");
    public String text;
    HtmlType(String text){
        this.text = text;
    }
    public String getText(){
        return this.text;
    }
    public static Map<Integer, HtmlType> typeValueMap = new HashMap<>();
    static {
        HtmlType[] values = HtmlType.values();
        for (HtmlType type : values) {
            typeValueMap.put(type.ordinal(), type);
        }
    }

}
